質問編集履歴

2

書式の改善

2020/03/24 06:24

投稿

luke04
luke04

スコア7

test CHANGED
File without changes
test CHANGED
@@ -285,5 +285,3 @@
285
285
  (anaconda3-2019.10) [vagrant@localhost ~]$
286
286
 
287
287
  ```
288
-
289
- '''

1

追記

2020/03/24 06:24

投稿

luke04
luke04

スコア7

test CHANGED
File without changes
test CHANGED
@@ -225,3 +225,65 @@
225
225
 
226
226
 
227
227
  ```
228
+
229
+ ### 追記
230
+
231
+ 原因と考えられる.bash_profileを見て各行間にechoで文字列を表示させて問題とみられる行を発見しました。2つのexport文が1行に書いてあり、改行したところエラーメッセージは出なくなりました。しかし、相変わらず同じコードが表示されます
232
+
233
+ これは直ったと考えていいでしょうか。
234
+
235
+ また、下の4行目~のコードはどこのファイルのコードなのでしょう?
236
+
237
+
238
+
239
+
240
+
241
+ ```Vagrant
242
+
243
+ login as: vagrant
244
+
245
+ vagrant@192.168.33.10's password:
246
+
247
+ Last login: Tue Mar 24 05:47:45 2020 from 10.0.2.2
248
+
249
+ export PATH="/home/vagrant/.pyenv/shims:${PATH}"
250
+
251
+ export PYENV_SHELL=bash
252
+
253
+ source '/home/vagrant/.pyenv/libexec/../completions/pyenv.bash'
254
+
255
+ command pyenv rehash 2>/dev/null
256
+
257
+ pyenv() {
258
+
259
+ local command
260
+
261
+ command="${1:-}"
262
+
263
+ if [ "$#" -gt 0 ]; then
264
+
265
+ shift
266
+
267
+ fi
268
+
269
+
270
+
271
+ case "$command" in
272
+
273
+ activate|deactivate|rehash|shell)
274
+
275
+ eval "$(pyenv "sh-$command" "$@")";;
276
+
277
+ *)
278
+
279
+ command pyenv "$command" "$@";;
280
+
281
+ esac
282
+
283
+ }
284
+
285
+ (anaconda3-2019.10) [vagrant@localhost ~]$
286
+
287
+ ```
288
+
289
+ '''